Skip to content

Don't load non-existent JSON settings file when saving a new file#8450

Merged
ofTheo merged 1 commit into
openframeworks:masterfrom
smeyfroi:patch-1
Jun 6, 2025
Merged

Don't load non-existent JSON settings file when saving a new file#8450
ofTheo merged 1 commit into
openframeworks:masterfrom
smeyfroi:patch-1

Conversation

@smeyfroi
Copy link
Copy Markdown
Contributor

@smeyfroi smeyfroi commented Jun 1, 2025

Prevent this error when a new JSON settings is saved:

[ error ] ofLoadJson: Error loading json from "/Users/steve/Documents/MarkSynth/settings/synth1/settings-4.json": file doesn't exist

I'm also suspicious of L235-237 for the same reason, but there's no error message when loading a non-existent XML so not sure.

Prevent this error when a new JSON settings is saved:
```
[ error ] ofLoadJson: Error loading json from "/Users/steve/Documents/MarkSynth/settings/synth1/settings-4.json": file doesn't exist
```

I'm also suspicious of L235-237 for the same reason, but there's no error message when loading a non-existent XML so not sure.
@ofTheo ofTheo merged commit d5119c0 into openframeworks:master Jun 6, 2025
18 checks passed
@ofTheo
Copy link
Copy Markdown
Member

ofTheo commented Jun 6, 2025

Thanks!!

@smeyfroi smeyfroi deleted the patch-1 branch June 6, 2025 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants